#include "userdata.h"
#include <QSettings>

UserData::UserData()
{
    mw = 0;
    pe = 0;
    dw = 0;
    le = 0;
    sw = 0;
    pi = 0;
    project = 0;
    QSettings s(SETTINGS_DEVELOPER, SETTINGS_SOFWARE);
    _lastDir = s.value("lastDirectory").toString();
}

QString UserData::lastDirectory() const
{
    return _lastDir;
}

void UserData::setLastDirectory(QString lastDir)
{
    _lastDir = lastDir;
    QSettings s(SETTINGS_DEVELOPER, SETTINGS_SOFWARE);
    s.setValue("lastDirectory", _lastDir);
}
